/**
 * Created by seal on 11/26/17.
 */
import React from 'react'
import ReactDom from 'react-dom'
import PCIndex from './components/pc_index'
import MobileIndex from './components/mobile_index'
import { BrowserRouter} from 'react-router-dom'
import MediaQuery from 'react-responsive'
ReactDom.render(
    <BrowserRouter>
        <div>
            <MediaQuery query='(min-device-width: 1224px)'>
                <PCIndex />
            </MediaQuery>
            <MediaQuery query='(max-device-width: 1224px)'>
                <MobileIndex />
            </MediaQuery>
        </div>
    </BrowserRouter>,
    document.getElementById('root')
)